<?php
/*
 * Created on 14.10.2007
 *
 * filename: index.php5
 */
 
 include('include/startup.php5'); 
 session_start();
 $template = new Smarty_Construct($registry);
 $registry->set('template',$template);
  
 $debug = new Debug();
 $registry->set('debug',$debug);
 
 $router = new New_Router ($registry);

 $registry->set('router', $router);


 try{
 	$result = $router->delegate();	
 } catch (PDOException $e) {
	error_log("DB Error!: " . $e->getMessage() . ' in: '.$e->getFile().' at: '.$e->getLine());
 } catch (Exception $e) {
 	error_log("Error!: " . $e->getMessage());
 }
 
?>